<% @page_title = @college.name %>
<% @blurb = discipline_blurb %>

<%= render :partial => 'sidebar' %>

<div class="column span-16 append-1 last">
  <h3>Disciplines in the <strong><%=h @college.name %></strong> college</h3>

  <% if @disciplines.size == 0 %>
    <p>No disciplines have been created in <%=h @college.name %> yet.</p>
  <% end %>

  <% @disciplines.each do |g| %>
    <h3><%= link_to_unless_current h(g.name), discipline_path(g) %></h3>
    <p class="byline">Created by <%= link_to h(g.user.login), profile_path(g.user.login) %><br />
    <% can_edit?(g) do %>
      <span class="edit"><%= link_to 'Edit', edit_discipline_path(g) %></span>
      <% if current_user.admin? %>
        <span class="delete"><%= link_to 'Delete', discipline_path(g), :method => :delete, :confirm => 'Are you sure you want to delete this discipline?' %></span>
      <% end %>
    <% end %>
    </p>

    <%= white_list(simple_format(g.description)) %>
  <% end %>

</div>
